#ifndef UART_H
#define UART_H

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>

#include <stdio.h>
#include <stdint.h>
#define F_CPU 16000000 
#ifndef F_CPU
#define F_CPU 16000000             /* Oszillator-Frequency */
#endif
 
#define UART_UBRR_CALC(BAUD_,FREQ_) ((FREQ_)/((BAUD_)*16L)-1)
 
#define UART_BAUD_RATE 9600

void init_rs232();
void uart_flush();
uint16_t uart_getc_wait();
uint16_t uart_getc();
void uart_puts (char *s);
int uart_putc(unsigned char c);


#endif
